@font-face {
    font-family: 'PPEditorialNewItalic';
    src: url('fonts/PPEditorialNew-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'PPEditorialNewUltralightItalic';
    src: url('fonts/PPEditorialNew-UltralightItalic.otf') format('opentype');
    font-weight: 200;
    font-style: italic;
}

@font-face {
    font-family: 'PPNeueMontreal';
    src: url('fonts/PPNeueMontreal-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PPNeueMontreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    /* min-height: 100vh; */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.perspective {
    perspective: 1000px;
}

.flip-card {
    position: relative;
    width: 768px;
    height: 512px;
    transition: transform 0.7s ease-in-out;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card.flipped {
    transform: rotateY(180deg);
}

.card-border {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: transparent;
    pointer-events: none;
    z-index: 2;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    overflow: hidden;
    background-clip: padding-box;
    z-index: 3;

    
}

/* .card {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    pointer-events: none;
} */

/* .card:hover {
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
} */

.front:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    z-index: 4;
}

.front {
    /* background: #FAFAFA;
    background: linear-gradient(124deg, rgba(250, 250, 250, 1) 0%, rgba(211, 225, 242, 1) 36%, rgba(234, 223, 237, 1) 71%, rgba(250, 250, 250, 1) 100%); */
    font-family: "PPEditorialNewItalic", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fafafa;

    /* background: #fae8f0;
    background: linear-gradient(135deg, rgba(250, 232, 240, 1) 0%, rgba(251, 237, 243, 1) 15%, rgba(250, 250, 250, 1) 27%, rgba(227, 236, 246, 1) 47%, rgba(218, 230, 245, 1) 78%, rgba(250, 250, 250, 1) 100%); */
    
    /* background: #020024;
    background: linear-gradient(60deg, rgba(2, 0, 36, 1) 0%, rgba(198, 62, 29, 1) 66%, rgba(225, 158, 142, 1) 100%); */

    /* background: #F9DC5C; */
    /* background: url('d205e79e-9638-4dd3-99e2-ebd160c31b1b.jpg') repeat; */
    /* background: url('d17942ff-8afd-46dd-b548-d85c13743956.jpg') repeat; */
    /* background-size: auto 100%; */
    /* background: linear-gradient(60deg, rgba(249, 220, 92, 0.6) 0%, rgba(250, 229, 136, 0.6) 24%, rgba(252, 239, 180, 0.6) 50%, rgba(253, 248, 225, 0.6) 67%, rgba(251, 232, 149, 0.6) 83%, rgba(249, 220, 92, 0.6) 100%); */
}

.front::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* background: url('d17942ff-8afd-46dd-b548-d85c13743956.jpg') repeat; */
    background: url('O9FG4X0.jpg') repeat;
    background-size: auto 100%;
    opacity: 0.2; /* adjust this value */
    pointer-events: none;
    z-index: 1;
}

/* .front:hover {
    transform: scale(1.05);
} */

.back {
    /* Keep the 70% opacity effect, but add a solid background underneath to block front text */
    /* background: linear-gradient(124deg, rgba(250, 250, 250, 0.6) 0%, rgba(211, 225, 242, 0.6) 36%, rgba(234, 223, 237, 0.6) 71%, rgba(250, 250, 250, 0.6) 100%),
                #fafafa; */
    background: rgba(250, 250, 250, 1);
    transform: rotateY(180deg);
}

.back::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('d17942ff-8afd-46dd-b548-d85c13743956.jpg') repeat;
    /* background: url('O9FG4X0.jpg') repeat; */
    background-size: auto 100%;
    opacity: 0.2; /* adjust this value */
    pointer-events: none;
    z-index: 1;
}

.card-content {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    height: 100%;
    padding: 2rem;
    color: white;
}

.back .card-content {
    align-items: center;
}

.text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


.title {
    font-size: 0.875rem;
    font-weight: normal;
    margin-bottom: 0.75rem;
    color: #7b7b7b;
}


.description {
    font-size: 0.875rem;
    /* color: #a5a5a5; */
    color: #7b7b7b;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 300px;
}


.back-title {
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 0.75rem;
    color: #a5a5a5;
}

.contact-info {
    margin-bottom: 1rem;
}


.contact-info p {
    font-size: 0.7rem;
    color: #a5a5a5;
    margin-bottom: 0.25rem;
}


/* .contact-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #a5a5a5;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease;
}

.contact-button:hover {
    background: rgba(255, 255, 255, 0.3);
} */

/* Responsive design */
/* @media (max-width: 640px) { */

@media (max-width: 750px) {
    .flip-card {
        width: 300px;
        height: 600px;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .title, .description, .contact-info p {
        font-size: 0.7rem;
    }
    
    .back-title {
        font-size: 1.25rem;
    }
}